﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;
using System.Data;


public partial class UserRentalHistory : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

        MembershipUser user = Membership.GetUser();

        if ((object)user != null)
        {
            DVDTableAdapters.DataTable3TableAdapter ta = new DVDTableAdapters.DataTable3TableAdapter();
            DataTable dt = new DataTable();
            dt = ta.GetMoviesRented((Guid)user.ProviderUserKey);
            GridView1.DataSource = dt;

            GridView1.DataBind();
        }


    }
}